package Experiment;

import java.util.*;

public class Experiment_4_2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        List<Integer> list=new LinkedList<>();
        Set<Integer> set=new HashSet<>();
        for (int i = 0; i <5; i++) {
            int x=sc.nextInt();
            list.add(x);
            set.add(x);
        }
        System.out.println("陈杰202012900203");
        System.out.print("这是list里的数:");
        Iterator<Integer> iterator1 = list.iterator();
        while (iterator1.hasNext()){
            int n=iterator1.next();
            System.out.print(n+" ");
        }
        System.out.println();
        System.out.print("这是set里的数:");
        for (int i :set) {
            System.out.print(i+" ");
        }
    }
}
